home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 May / PCpro_2006_05.ISO / files / mobile / fma-2.0-stable-setup.exe / {app} / sframework / doc / Simple.vbs < prev    next >
Encoding:
Text File  |  2004-09-09  |  1.2 KB  |  43 lines

  1. 'FMA Script Framework Plugin
  2. 'Simple plugin
  3.  
  4. Class Simple
  5.     
  6.     Private m_Self 'Here your own name will be stored. We'll cover that later... See also Property Let/Get Self
  7.     
  8.     'Some info about the plugin
  9.     Public Property Get SHOWABLE 'Do I have a menu?
  10.         SHOWABLE    = True
  11.     End Property
  12.     Public Property Get TITLE 'What's my name? This will be the title of your menu entry in the main menu
  13.         TITLE       = "Simple plugin"
  14.     End Property
  15.     Public Property Get DESCRIPTION 'What's my purpose?
  16.         DESCRIPTION = "A minimum example for a plugin"
  17.     End Property
  18.     Public Property Get AUTHOR 'Who created me?
  19.         AUTHOR      = "streawkceur"
  20.     End Property
  21.     Public Property Get URL 'Were can I be found? Where can you get more information?
  22.         URL         = "http://fma.xinium.com/"
  23.     End Property
  24.     
  25.     'Who am I?
  26.     Public Property Let Self (s)
  27.         m_Self = s
  28.     End Property
  29.     Public Property Get Self
  30.         Self = m_Self
  31.     End Property
  32.     
  33.     'Show will be called every time the user selects your plugin from the main menu
  34.     Sub Show()
  35.         'Just put a log message to FMA
  36.         Debug.InfoMsg "Developing plugins is simple!"
  37.         'put an am.Update to prevent the menu from getting stuck
  38.         am.Update
  39.     End Sub
  40.  
  41. End Class
  42.  
  43.